package com.syy.writableComparable;

import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;

import java.io.IOException;

public class FlowComparableRuducer extends Reducer<FlowPhone, Text, Text, FlowPhone> {
    @Override
    protected void reduce(FlowPhone key, Iterable<Text> values, Reducer<FlowPhone, Text, Text, FlowPhone>.Context context) throws IOException, InterruptedException {
        for (Text text:values) {
            context.write(text, key);
        }
    }
}
